package com.cf.game.message;

import com.cf.game.service.constants.EnumReturnCode;
import com.cf.serialize.Response;

/**
 * game-server-BeanResponse
 * 惩罚通知
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/8 上午 11:05
 */
public class PunishNotifyResponse extends Response {

    public static Integer type = EnumMessageType.PunishNotifyResponse.getType();

    private boolean self = false;

    private boolean all = false;

    public PunishNotifyResponse(boolean self, boolean all) {
        super("", EnumReturnCode.SUCCESS.getCode());
        this.self = self;
        this.all = all;
    }

    @Override
    public Integer messageType() {
        return type;
    }

    public boolean getSelf() {
        return self;
    }

    public void setSelf(boolean self) {
        this.self = self;
    }

    public Integer getType() {
        return type;
    }

    public boolean getAll() {
        return all;
    }

    public void setAll(boolean all) {
        this.all = all;
    }

    public void setType(Integer type) {
        PunishNotifyResponse.type = type;
    }
}
